package com.secxiot.provider.task.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.Collections;
import java.util.Date;
import java.util.List;

@ApiModel
@Data
@NoArgsConstructor
@ToString
//@Builder
public class TaskVo implements Serializable {
    private static final long serialVersionUID = -2910052100122219973L;

    @ApiModelProperty("任务id")
    private Long taskId;

    /**
     * 任务类型，字典：交接，输液······
     */
    @ApiModelProperty("任务类型，字典：00002")
    private String taskType;

    @ApiModelProperty("发送者id")
    private Long senderId;

    @ApiModelProperty("发送者姓名")
    private String senderName;

    @ApiModelProperty("紧急程度，字典:00003")
    private String priority;

    @ApiModelProperty("是否需要确认，0：否 1：是")
    private Integer confirmRequired;

    /*
     * 初始化，待接收，待确认，已移交，已确认，已过期
     */
    @ApiModelProperty("任务状态，字典：00008")
    private String confirmStatus;

    @ApiModelProperty("是否已删除，0：否 1：是")
    private Integer delFlag;

    @ApiModelProperty("任务提醒时间戳")
    private Date taskTime;

    @ApiModelProperty("任务更新时间")
    private Date updateTime;

    @ApiModelProperty("任务正文")
    private String content;

    @ApiModelProperty("任务附件集合")
    private List<TaskFileVo> files = Collections.emptyList();

    @ApiModelProperty("交接内容")
    private List<TaskTransferVo> transfers = Collections.emptyList();

    @ApiModelProperty("SOS内容")
    private TaskSosVo sos ;

}
